package com.cskaoyan.service.impl;

import com.cskaoyan.bean.pojo.MallStorage;
import com.cskaoyan.mapper.MallStorageMapper;
import com.cskaoyan.service.FileUploadService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author: harveyliu
 * @description: 文件上传的业务实现类
 * @time: 2021/7/9 11:28
 */
@Service
public class FileUploadServiceImpl implements FileUploadService {

    @Autowired
    MallStorageMapper mallStorageMapper;

    /**
     * @Author harvey
     * @description: 将文件上传的图片url等信息插入到数据库
     * @Date 2021/7/9 11:31
     * url: http://localhost:8083/admin/storage/create
     */
    @Override
    public void uploadImage(MallStorage mallStorage) {
        mallStorageMapper.insertSelective(mallStorage);
    }
}















